local scene = gamestate.new()

function scene:enter(from,screenshot,how,cx,cy)
	collectgarbage("collect")
	net.inGame = false
    self.game = game_mode.localrandom()
end

function scene:update(dt)
    self.game:update(dt)
end

function scene:draw()
    self.game:draw()
    suit.draw()
end

function scene:keypressed(k)
	if k == "escape" then
		gamestate.switch(gameState.title)
        sound:stopAll()
	end
end

return scene